package com.zhiche.lisa.mdm.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 上传文件批量计算运距日志
 * </p>
 *
 * @author qichao
 * @since 2018-08-02
 */
@TableName("lisa_range_calc_log")
public class RangeCalcLog extends Model<RangeCalcLog> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 上传文件名
     */
	@TableField("upload_file_name")
	private String uploadFileName;
    /**
     * 是否成功
     */
	@TableField("is_success")
	private Integer isSuccess;
    /**
     * 计算结果文件名
     */
	@TableField("result_file_name")
	private String resultFileName;
    /**
     * 处理的结果
     */
	@TableField("calc_result")
	private String calcResult;
    /**
     * 租户ID
     */
	@TableField("tenant_id")
	private Long tenantId;
    /**
     * 文件上传时间
     */
	@TableField("gmt_upload")
	private Date gmtUpload;
    /**
     * 计算完成时间
     */
	@TableField("gmt_finish_calc")
	private Date gmtFinishCalc;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUploadFileName() {
		return uploadFileName;
	}

	public void setUploadFileName(String uploadFileName) {
		this.uploadFileName = uploadFileName;
	}

	public Integer getIsSuccess() {
		return isSuccess;
	}

	public void setIsSuccess(Integer isSuccess) {
		this.isSuccess = isSuccess;
	}

	public String getResultFileName() {
		return resultFileName;
	}

	public void setResultFileName(String resultFileName) {
		this.resultFileName = resultFileName;
	}


	public String getCalcResult() {
		return calcResult;
	}

	public void setCalcResult(String calcResult) {
		this.calcResult = calcResult;
	}

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	public Date getGmtUpload() {
		return gmtUpload;
	}

	public void setGmtUpload(Date gmtUpload) {
		this.gmtUpload = gmtUpload;
	}

	public Date getGmtFinishCalc() {
		return gmtFinishCalc;
	}

	public void setGmtFinishCalc(Date gmtFinishCalc) {
		this.gmtFinishCalc = gmtFinishCalc;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "RangeCalcLog{" +
			", id=" + id +
			", uploadFileName=" + uploadFileName +
			", isSuccess=" + isSuccess +
			", resultFileName=" + resultFileName +
			", calcResult=" + calcResult +
			", tenantId=" + tenantId +
			", gmtUpload=" + gmtUpload +
			", gmtFinishCalc=" + gmtFinishCalc +
			"}";
	}
}
